#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void swap(int *a, int *b)
{
  int t = *a;
  *a = *b;
  *b = t;
}

void select_sort(int str[], int n)
{
  int i, j, min;
  for (i = 0; i < n - 1; i++)
  {
    min = i;
    for (j = i + 1; j < n; j++)
    {
      if (str[min] > str[j])
      {
        min = j;
      }
      swap(&str[i], &str[min]);
    }
  }
}
int main(int argc, char *argv[])
{
  int N, i;
  int str[100];
  scanf("%d", &N);
  for (i = 0; i < N; i++)
  {
    scanf("%d", &str[i]);
  }

  select_sort(str, N);
  for (i = 0; i < N; i++)
  {
    printf("%d ", str[i]);
  }
  return 0;
}
